import request from '@/utils/request'

export function getQuestionListApi(params) {
    return request({
        method: 'get',
        url: 'question/semiLogin/list',
        params
    })
}


export function getQuestionDetailApi(questionId) {
    return request({
        method: 'get',
        url: 'question/detail',
        params:{questionId}
    })
}


export function prevQuestionApi(questionId) {
    return request({
        method: 'get',
        url: 'question/prevQuestion',
        params:{questionId}
    })
}


export function nextQuestionApi(questionId) {
    return request({
        method: 'get',
        url: 'question/nextQuestion',
        params:{questionId}
    })
}

export function getQuestionResultApi(examId, questionId,uniqueId) {
    return request({
        url: '/user/question/exeResult',
        method: 'get',
        params:{examId,questionId,uniqueId}
    })
}

export function getHotQuestionsApi() {
    return request({
        method: 'get',
        url: 'question/semiLogin/hotQuestion'
    })
}